import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/interact_user_collect_rm_entity.dart';

InteractUserCollectRmEntity $InteractUserCollectRmEntityFromJson(
    Map<String, dynamic> json) {
  final InteractUserCollectRmEntity interactUserCollectRmEntity = InteractUserCollectRmEntity();
  final int? state = jsonConvert.convert<int>(json['state']);
  if (state != null) {
    interactUserCollectRmEntity.state = state;
  }
  final String? msg = jsonConvert.convert<String>(json['msg']);
  if (msg != null) {
    interactUserCollectRmEntity.msg = msg;
  }
  return interactUserCollectRmEntity;
}

Map<String, dynamic> $InteractUserCollectRmEntityToJson(
    InteractUserCollectRmEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  data['msg'] = entity.msg;
  return data;
}

extension InteractUserCollectRmEntityExtension on InteractUserCollectRmEntity {
  InteractUserCollectRmEntity copyWith({
    int? state,
    String? msg,
  }) {
    return InteractUserCollectRmEntity()
      ..state = state ?? this.state
      ..msg = msg ?? this.msg;
  }
}